package com.sun.hunk.util;

/**
 *
 * @author sunil
 */
public class UniqueID {

    static long current = System.currentTimeMillis();

    public static synchronized long get() {
        return current++;
    }

    public static synchronized long getLong() {
        return new Long(get());
    }

    public static synchronized String getString() {
        return new Long(get()).toString();
    }

    public static synchronized int getInt() {
        return new Long(get()).intValue();
    }   
}
